home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2001 May
/
SGI Freeware 2001 May - Disc 2.iso
/
dist
/
fw_pspell.idb
/
usr
/
freeware
/
src
/
pspell
/
patches.z
/
patches
Wrap
Text File
|
2001-04-12
|
7KB
|
275 lines
--- ./interface/app_string.hh Sun Jun 11 17:05:22 2000
+++ ../pspell-.12/./interface/app_string.hh Fri Mar 30 17:53:16 2001
@@ -11,7 +11,7 @@
#ifndef PSPELL_APP_STRING__HH
#define PSPELL_APP_STRING__HH
-#include <cstring>
+#include <string.h>
class PspellAppendableString {
public:
--- ./interface/itemize.cc Sun Jun 11 17:05:22 2000
+++ ../pspell-.12/./interface/itemize.cc Fri Mar 30 17:53:16 2001
@@ -1,7 +1,7 @@
-#include <cctype>
-#include <cstring>
-#include <cstdlib>
+#include <ctype.h>
+#include <string.h>
+#include <stdlib.h>
#include "mutable_container.h"
--- ./interface/string.cc Sat Mar 25 02:08:33 2000
+++ ../pspell-.12/./interface/string.cc Fri Mar 30 17:53:16 2001
@@ -1,5 +1,5 @@
-#include <cstring>
+#include <string.h>
#include "string.hh"
PspellString::PspellString() {
--- ./interface/getdata.cc Fri Nov 24 16:48:14 2000
+++ ../pspell-.12/./interface/getdata.cc Fri Mar 30 17:53:16 2001
@@ -1,5 +1,5 @@
-#include <cstring>
+#include <string.h>
#include "string.hh"
#include "getdata.hh"
--- ./interface/getdata.hh Thu Aug 3 06:38:10 2000
+++ ../pspell-.12/./interface/getdata.hh Tue Apr 3 23:38:18 2001
@@ -13,7 +13,7 @@
#include "conf.h"
-#include <iostream>
+#include <iostream.h>
class PspellString;
--- ./interface/string_map_impl.cc Wed Jan 24 21:39:34 2001
+++ ../pspell-.12/./interface/string_map_impl.cc Fri Mar 30 17:53:16 2001
@@ -1,6 +1,6 @@
-#include <cstring>
-#include <cassert>
+#include <string.h>
+#include <assert.h>
#include "string_map_impl.hh"
--- ./interface/convert.cc Fri Nov 24 00:30:04 2000
+++ ../pspell-.12/./interface/convert.cc Tue Apr 3 23:41:20 2001
@@ -1,10 +1,10 @@
#include "conf.h"
-#include <fstream>
-#include <cassert>
-#include <cstdlib>
-#include <cctype>
+#include <fstream.h>
+#include <assert.h>
+#include <stdlib.h>
+#include <ctype.h>
#include "convert.hh"
#include "app_string.hh"
--- ./interface/string_list.cc Tue May 30 11:59:40 2000
+++ ../pspell-.12/./interface/string_list.cc Fri Mar 30 17:53:16 2001
@@ -15,7 +15,7 @@
void pspell_string_list_assign(PspellStringList * l,
const PspellStringList * o)
{
- return l->assign(o);
+ l->assign(o);
}
PspellStringEmulation *
@@ -36,7 +36,7 @@
void pspell_string_list_clear(PspellStringList * l)
{
- return l->clear();
+ l->clear();
}
int pspell_string_list_empty(const PspellStringList * l)
--- ./interface/manager_impl.cc Sun Jan 28 13:12:23 2001
+++ ../pspell-.12/./interface/manager_impl.cc Tue Apr 3 23:38:23 2001
@@ -1,11 +1,11 @@
#include "conf.h"
-#include <iostream>
-#include <fstream>
-#include <cassert>
-#include <cstring>
-#include <cctype>
+#include <iostream.h>
+#include <fstream.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
// POSIX includes
#include <dirent.h>
--- ./interface/config_impl.hh Fri Nov 24 16:43:20 2000
+++ ../pspell-.12/./interface/config_impl.hh Tue Apr 3 23:38:17 2001
@@ -13,7 +13,7 @@
#include "conf.h"
-#include <iostream>
+#include <iostream.h>
#include "config.h"
#include "string_map.h"
#include "string.hh"
--- ./interface/config_impl.cc Wed Jan 24 21:09:45 2001
+++ ../pspell-.12/./interface/config_impl.cc Tue Apr 3 23:40:23 2001
@@ -1,11 +1,11 @@
#include "conf.h"
-#include <cstdio>
-#include <cstring>
-#include <cstdlib>
-#include <iomanip>
-#include <fstream>
-#include <cassert>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <iomanip.h>
+#include <fstream.h>
+#include <assert.h>
#include "error.h"
#include "config_impl.hh"
@@ -18,6 +18,8 @@
static const PspellModule a_module = PspellModule();
+typedef PspellNotifier *PspellNotifierPtr;
+
PspellConfigImpl::PspellConfigImpl(const char * name,
const PspellKeyInfo * mainbegin,
const PspellKeyInfo * mainend)
@@ -31,7 +33,7 @@
kmi.extra_end = 0;
kmi.modules_begin = &a_module;
kmi.modules_end = &a_module;
- notifier_list = new (PspellNotifier *)[1];
+ notifier_list = new PspellNotifierPtr[1];
notifier_list[0] = 0;
}
@@ -44,7 +46,7 @@
: name_(other.name_), attached_(0), kmi(other.kmi)
{
data_ = other.data_->clone();
- notifier_list = new (PspellNotifier *)[1];
+ notifier_list = new PspellNotifierPtr[1];
notifier_list[0] = 0;
}
@@ -55,7 +57,7 @@
attached_ = 0;
kmi = other.kmi;
data_->assign(other.data_);
- notifier_list = new (PspellNotifier *)[1];
+ notifier_list = new PspellNotifierPtr[1];
notifier_list[0] = 0;
return *this;
}
@@ -107,7 +109,7 @@
PspellNotifier * * temp = notifier_list;
size_t old_size = i - temp;
- notifier_list = new (PspellNotifier *)[old_size + 2];
+ notifier_list = new PspellNotifierPtr[old_size + 2];
unsigned int j = 0;
for (; j != old_size; ++j)
notifier_list[j] = temp[j];
@@ -128,7 +130,7 @@
} else {
PspellNotifier * * temp = notifier_list;
size_t old_size = i - temp;
- notifier_list = new (PspellNotifier *)[old_size];
+ notifier_list = new PspellNotifierPtr[old_size];
unsigned j = 0;
for (; j != old_size - 1; ++j) {
if (temp[j] != n)
@@ -650,7 +652,7 @@
void PspellConfigImpl::write_to_stream(ostream & out,
bool include_extra)
{
- ios::fmtflags f = out.flags();
+ long f = out.flags();
out.setf(ios::left);
//out << "## " << name() << "\n\n";
PspellKeyInfoEmulation * els = possible_elements(include_extra);
--- ./interface/conf.h Thu Aug 3 06:41:45 2000
+++ ../pspell-.12/./interface/conf.h Tue Apr 3 23:39:03 2001
@@ -2,7 +2,7 @@
#ifndef CONF__H
#define CONF__H
-#define STD std::
-#define USING_STD using namespace std;
+#define STD /* std:: */
+#define USING_STD /* using namespace std; */
#endif
--- ./examples/example-c.c Sat Nov 25 15:52:07 2000
+++ ../pspell-.12/./examples/example-c.c Wed Apr 4 13:03:35 2001
@@ -1,7 +1,11 @@
#include <stdio.h>
#include <string.h>
+#ifdef INTERNAL
+#include "../interface/pspell.h"
+#else
#include <pspell/pspell.h>
+#endif
static void print_word_list(PspellManager * manager,
const PspellWordList *wl)
@@ -101,7 +105,7 @@
" m dumps the master word list\n"
" S saves all word lists\n"
" C clear the cuurent sesstion word list\n"
- " x quite\n" );
+ " x quit\n" );
break;
case 'p':
print_word_list(manager, pspell_manager_personal_word_list(manager));
--- ./examples/example-cxx.cc Thu Nov 23 18:46:50 2000
+++ ../pspell-.12/./examples/example-cxx.cc Wed Apr 4 13:03:42 2001
@@ -1,7 +1,11 @@
-#include <iostream>
-#include <cstring>
+#include <iostream.h>
+#include <string.h>
+#ifdef INTERNAL
+#include "../interface/pspell.h"
+#else
#include <pspell/pspell.h>
+#endif
static void print_word_list(PspellManager * manager,
const PspellWordList *wl)
@@ -95,7 +99,7 @@
" m dumps the master word list\n"
" S saves all word lists\n"
" C clear the cuurent sesstion word list\n"
- " x quite\n";
+ " x quit\n";
break;
case 'p':
print_word_list(manager, manager->personal_word_list());